<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('服务报价单新增及修改')" />
	<th:block th:include="include :: businessCSS" />
</head>
<body class="no-skin">
<div class="main-container" id="main-container">
	<div class="main-content">
	<form class="layui-form head-form">
	    <div class="north">
            <th:block th:include="include :: business_btn" />
	        <th:block th:include="include :: business_tpl('top')" />
			<!-- 静态表格 -->
		    <div style="margin:10px">
			  	<table class="layui-table" lay-size="sm">
			    <colgroup>
			      <col width="8%">
			      <col width="12%">
			      <col width="8%">
			      <col width="12%">
			      <col width="8%">
			      <col width="12%">
			      <col width="8%">
			      <col width="12%">
			      <col width="8%">
			      <col width="12%">
			    </colgroup>
			      <thead>
					<tr>
				    	<th colspan="10">业务员信息</th>
				  	</tr>
				  </thead>
			      <tbody>
			      	<tr>
			      		<td class="table-title">业务负责人</td>
			      		<td onclick="getMore('gUserName');" th:if="!${gridColumns.readOnly}">
			        		<input type="text" class="layui-input" name="gUserName" id="gUserName" readonly/>
				  			<i class="layui-icon layui-icon-more getMore" style="position:absolute"></i>
			  			</td>
			  			<td th:if="${gridColumns.readOnly}"><input type="text" class="layui-input" name="gUserName" id="gUserName"></td>
			  			<td class="table-title">职务</td>
			  			<td><input type="text" id="vYwyZw" name="vYwyZw" autocomplete="off" class="layui-input"></td>
			  			<td class="table-title">业务部门</td>
			  			<td><input type="text" id="gDeptName" name="gDeptName" autocomplete="off" class="layui-input"></td>
			  			<td class="table-title">联系电话</td>
			  			<td><input type="text" id="vYwyTel" name="vYwyTel" autocomplete="off" class="layui-input"></td>
			  			<td class="table-title">邮箱</td>
			  			<td><input type="text" id="vYwyMail" name="vYwyMail" autocomplete="off" class="layui-input"></td>
			      	</tr>
				  </tbody>
			  </table>
    	</div>
	    <div class="mid-content">
	        <table class="layui-hide" id="dhtable" lay-filter="ftable"></table>
	    </div>
		<th:block th:include="include :: pageFooter" /> 
        </form>
	</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: businessJS" />
<th:block th:include="include :: businessTableBtn" />
<th:block th:include="include :: inlineJS" />
<script type="text/javascript">
var $,layer,form,table,laydate,element;//定义layui模块
eachFields();//明细表格中的字段遍历
if(!!$("#fXsFpsl_select").val())$("#fXsFpsl").val($("#fXsFpsl_select").val());//默认税率赋值至input
layui.use(['laydate', 'table','form','layer','jquery','util','element'], function () {
 	$ = layui.$,layer = layui.layer,form = layui.form,table = layui.table,laydate = layui.laydate,util = layui.util,element=layui.element;
 	beforeInit();//表单初始化之前的动作集合
 	layui.element.render();
 	$.each(t_fields,function(v,k){//初始赋值
 		$('#'+k.fields).val(k.fieldContent);
 	})
 	if(gridColumns.readOnly){//流程结束后变为不可编辑	
 	 	$('table input').attr('readonly','readonly');
		$('table .canntEdit').removeClass('canntEdit');
 	}
 	$.get("/business/serveroffer/listbynid?nid="+nid,function(data){
		$.each(data.data,function(k,v){
			dataStr.push(v);
		});
		initTable();//初始化表格
	});
	form.render();
	toolbarEvent();//通用表格头部工具栏事件监听
	toolEvent('ftable');//行event事件监听
	monitorSort();//监听排序——重载赋值渲染
	moneyCalculation();//表格编辑——资金计算
})
</script>
</body>
</html>